Skip to content

ci: skip release-please job when secret is not defined#2830

Merged
baywet merged 1 commit intomainfrom
ci/release-please-condition
Apr 21, 2026
Merged

ci: skip release-please job when secret is not defined#2830
baywet merged 1 commit intomainfrom
ci/release-please-condition

Conversation

@baywet
Copy link
Copy Markdown
Member

@baywet baywet commented Apr 20, 2026

The release-please workflow fails in forks or environments where RELEASE_PLEASE_TOKEN_PROVIDER_PEM is not configured, erroring at the GitHub App token generation step.

Changes

Added an if condition to skip the release job when the secret is absent:

if: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM != '' }}

Mirrors the fix from kiota-authentication-oauth-ruby#49.

@baywet baywet requested a review from a team as a code owner April 20, 2026 11:48
@baywet baywet enabled auto-merge (squash) April 20, 2026 11:48
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@baywet baywet force-pushed the ci/release-please-condition branch from 8611f25 to 2e87bcf Compare April 20, 2026 12:00
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 20, 2026

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@baywet baywet merged commit 3f82eb9 into main Apr 21, 2026
18 checks passed
@baywet baywet deleted the ci/release-please-condition branch April 21, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants